package com.shenfa.bean.bill.stencil;

/**
 * 模版从表字典映射类
 * 
 * @author 龙辰三
 * @date 2011-8-23
 * 
 */
public class StencilDependence {

	private String stencilno; // 模版编号
	private int stencilversion;// 模板版本号
	private char stencilinno; // 输入编号
	private String stencilinname; // 输入名称

	public StencilDependence() {
		super();
	}

	public StencilDependence(String stencilno, int stencilversion,
			char stencilinno, String stencilinname) {
		super();
		this.stencilno = stencilno;
		this.stencilversion = stencilversion;
		this.stencilinno = stencilinno;
		this.stencilinname = stencilinname;
	}

	public String getStencilno() {
		return stencilno;
	}

	public void setStencilno(String stencilno) {
		this.stencilno = stencilno;
	}

	public int getStencilversion() {
		return stencilversion;
	}

	public void setStencilversion(int stencilversion) {
		this.stencilversion = stencilversion;
	}

	public char getStencilinno() {
		return stencilinno;
	}

	public void setStencilinno(char stencilinno) {
		this.stencilinno = stencilinno;
	}

	public String getStencilinname() {
		return stencilinname;
	}

	public void setStencilinname(String stencilinname) {
		this.stencilinname = stencilinname;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((stencilinname == null) ? 0 : stencilinname.hashCode());
		result = prime * result + stencilinno;
		result = prime * result
				+ ((stencilno == null) ? 0 : stencilno.hashCode());
		result = prime * result + stencilversion;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		StencilDependence other = (StencilDependence) obj;
		if (stencilinname == null) {
			if (other.stencilinname != null)
				return false;
		} else if (!stencilinname.equals(other.stencilinname))
			return false;
		if (stencilinno != other.stencilinno)
			return false;
		if (stencilno == null) {
			if (other.stencilno != null)
				return false;
		} else if (!stencilno.equals(other.stencilno))
			return false;
		if (stencilversion != other.stencilversion)
			return false;
		return true;
	}

}
